package com.octopus.optiworks.dao;

import java.util.List;

import org.springframework.stereotype.Component;

import com.octopus.optiworks.model.Step140IntegrationData;

@Component
public class Step140IntegrationDataDao extends GenericStepDataDao<Step140IntegrationData, Long>{
	
	public Step140IntegrationData getStep140IntegrationDataBySn(String sn){
		List<Step140IntegrationData> list = super.find("from Step140IntegrationData s where s.sn=?", new String[]{sn});
		if(list != null && list.size() > 0)
			return list.get(0);
		return null;
	}
	
}
